package wechat.base.snd;

import org.eclipse.xtend.lib.annotations.Accessors;
import org.eclipse.xtext.xbase.lib.Pure;
import wechat.base.snd.encoding.JsonPut;

@SuppressWarnings("all")
public class WCMPNewsItem {
  @Accessors
  private String title;
  
  @Accessors
  private String thumb_media_id;
  
  @Accessors
  private String author;
  
  @Accessors
  private String content_source_url;
  
  @Accessors
  private String content;
  
  @Accessors
  private String digest;
  
  @Accessors
  private String show_cover_pic;
  
  public WCMPNewsItem(final String title) {
    this.title = title;
    this.show_cover_pic = "0";
  }
  
  public JsonPut toJson() {
    JsonPut _xblockexpression = null;
    {
      final JsonPut article = new JsonPut();
      article.putObj("title", this.title);
      article.putObj("thumb_media_id", this.thumb_media_id);
      article.putObj("author", this.author);
      article.putObj("content_source_url", this.content_source_url);
      article.putObj("content", this.content);
      article.putObj("digest", this.digest);
      article.putObj("show_cover_pic", this.show_cover_pic);
      _xblockexpression = article;
    }
    return _xblockexpression;
  }
  
  @Pure
  public String getTitle() {
    return this.title;
  }
  
  public void setTitle(final String title) {
    this.title = title;
  }
  
  @Pure
  public String getThumb_media_id() {
    return this.thumb_media_id;
  }
  
  public void setThumb_media_id(final String thumb_media_id) {
    this.thumb_media_id = thumb_media_id;
  }
  
  @Pure
  public String getAuthor() {
    return this.author;
  }
  
  public void setAuthor(final String author) {
    this.author = author;
  }
  
  @Pure
  public String getContent_source_url() {
    return this.content_source_url;
  }
  
  public void setContent_source_url(final String content_source_url) {
    this.content_source_url = content_source_url;
  }
  
  @Pure
  public String getContent() {
    return this.content;
  }
  
  public void setContent(final String content) {
    this.content = content;
  }
  
  @Pure
  public String getDigest() {
    return this.digest;
  }
  
  public void setDigest(final String digest) {
    this.digest = digest;
  }
  
  @Pure
  public String getShow_cover_pic() {
    return this.show_cover_pic;
  }
  
  public void setShow_cover_pic(final String show_cover_pic) {
    this.show_cover_pic = show_cover_pic;
  }
}
